Manages the timers attached to contexts. Usually timers can be useful for deltas of frames. More...
Public Member Functions | |
| GlobalTimer * | createOrRetrieve (RenderContext *forContext) |
| void | prepareForContext (RenderContext *context) |
| GlobalTimer * | getActiveTimer () const |
Manages the timers attached to contexts. Usually timers can be useful for deltas of frames.
Manager owns all the memory it allocates. External code should never delete it.
| GlobalTimer* nkGraphics::GlobalTimerManager::createOrRetrieve | ( | RenderContext * | forContext | ) |
Creates if unavailable, or retrieve if available, a timer attached to a context.
| forContext | The context for which to get a timer. |
| void nkGraphics::GlobalTimerManager::prepareForContext | ( | RenderContext * | context | ) |
Prepares the Manager for a context. This will fetch the right timer for the
| GlobalTimer* nkGraphics::GlobalTimerManager::getActiveTimer | ( | ) | const |